@extends('admin.master')

@section('css')
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <style>

        .file-input {
            margin: 10px 50px;
            position: relative;
            left: 46px;
        }

        .file-caption {
            margin-top: 5px;
            height: 36px;
        }
        .form-inline {
            margin-bottom: 20px;
        }

        .form-inline label {
            font-weight: bold;
            margin-right: 10px;
        }
    </style>
@stop


@section('content')
<table class="table table-bordered">
    <caption>商品列表</caption>
    <thead>
        <tr>
            <th>名称</th>
            <th>类型</th>
            <th>价格</th>
            <th>描述</th>
            <th>数量</th>
            <th>图片</th>
        </tr>
    </thead>
    <tbody>
    @foreach($details as $detail )
        <tr>
            <th>{{$detail->name}}</th>
            <th>{{$detail->type}}</th>
            <th>{{$detail->cost}}</th>
            <th>{{$detail->descript}}</th>
            <th>{{$detail->num}}</th>
            
        </tr>
    @endforeach 
    </tbody>
</table>
<script type="text/javascript">
    $(".deletedgoods").click(function(){
        var ids = $(this).attr("value");
        console.log(ids);
    })
</script>

@stop
@section('javascript')
    <script>
        $('document').ready(function () {
            $('.toggleswitch').bootstrapToggle();
        });
    </script>
    
    <script src="/js/tinymce.min.js"></script>
    <script src="/js/voyager_tinymce.js"></script>
@stop